2 Problem: 575 - Skew simmetry (UVa)
3 Author: Andrés Mejía-Posada
4 (http://blogaritmo.factorcomun.org)
28 #define D(x) cout << #x " is " << x << endl
33 while (cin
>> s
&& s
!= "0"){
34 reverse(s
.begin(), s
.end());
37 for (int i
=0, b
=1; i
<s
.size(); ++i
, b
= 2*b
+1){
38 ans
+= (s
[i
] - '0')*b
;